package com.wz.project.sap.PYPK.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.sap.PYPK.mapper.ZflWmsPyPkMapper;
import com.wz.project.sap.PYPK.domain.ZflWmsPyPk;
import com.wz.project.sap.PYPK.service.IZflWmsPyPkService;
import com.wz.common.utils.text.Convert;

/**
 * 库存盘盈盘亏Service业务层处理
 * 
 * @author wz
 * @date 2022-09-14
 */
@Service
public class ZflWmsPyPkServiceImpl implements IZflWmsPyPkService 
{
    @Autowired
    private ZflWmsPyPkMapper zflWmsPyPkMapper;

    /**
     * 查询库存盘盈盘亏
     * 
     * @param BLDAT 库存盘盈盘亏ID
     * @return 库存盘盈盘亏
     */
    @Override
    public ZflWmsPyPk selectZflWmsPyPkById(Date BLDAT)
    {
        return zflWmsPyPkMapper.selectZflWmsPyPkById(BLDAT);
    }

    /**
     * 查询库存盘盈盘亏列表
     * 
     * @param zflWmsPyPk 库存盘盈盘亏
     * @return 库存盘盈盘亏
     */
    @Override
    public List<ZflWmsPyPk> selectZflWmsPyPkList(ZflWmsPyPk zflWmsPyPk)
    {
        return zflWmsPyPkMapper.selectZflWmsPyPkList(zflWmsPyPk);
    }

    /**
     * 新增库存盘盈盘亏
     * 
     * @param zflWmsPyPk 库存盘盈盘亏
     * @return 结果
     */
    @Override
    public int insertZflWmsPyPk(ZflWmsPyPk zflWmsPyPk)
    {
        return zflWmsPyPkMapper.insertZflWmsPyPk(zflWmsPyPk);
    }

    /**
     * 修改库存盘盈盘亏
     * 
     * @param zflWmsPyPk 库存盘盈盘亏
     * @return 结果
     */
    @Override
    public int updateZflWmsPyPk(ZflWmsPyPk zflWmsPyPk)
    {
        return zflWmsPyPkMapper.updateZflWmsPyPk(zflWmsPyPk);
    }

    /**
     * 删除库存盘盈盘亏对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsPyPkByIds(String ids)
    {
        return zflWmsPyPkMapper.deleteZflWmsPyPkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除库存盘盈盘亏信息
     * 
     * @param BLDAT 库存盘盈盘亏ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsPyPkById(Date BLDAT)
    {
        return zflWmsPyPkMapper.deleteZflWmsPyPkById(BLDAT);
    }
}
